body {
 font-family: "Trebuchet MS", Arial, Helvetica, sans-serif, cursive;
 font-size: 10px;
 background:url(../img/bg.jpg) no-repeat center center fixed;
 text-align: center;
 -webkit-background-size: cover;
 -moz-background-size: cover;
 -o-background-size: cover;
 background-size: cover;
 width:100%;
 table-layout: auto;


}
#nav img {margin-left: 20px; margin-right: 40px}
/* sobrepor menu*/
#nav li ul{ margin: 0 auto; } 

/* MENU */

#nav {
 background: #e5e5e5;
 float: left;
 margin: 0 auto; padding: 0;
 border: 1px solid black;
 border-bottom: none;
}

#nav li a, #nav li {
 float: left;
}

#nav li {
 list-style: none;
 position: relative;
}

#nav li a {
 padding: 1em 4em;/*define tamanho vertical da aba do menu principal*/
 text-decoration: dashed;/*define a formatação do texto do menu*/
 color: white;
 background: #292929;
 background: -moz-linear-gradient(top, black, #3c3c3c 1px, #292929 25px);
 background: url(../img/bg2.png);/*define a cor*/
 border-right: 1px solid #3c3c3c;
 border-left: 1px solid #292929;
 border-bottom: 1px solid #232323;
 border-top: 1px solid #545454;
}

#nav li a:hover {
 background: #2a0d65;
 background: -moz-linear-gradient(top, #11032e, #2a0d65);
 background: -webkit-gradient(linear, left top, left bottom, from(#11032e), to(#2a0d65));
}

/* Submenu */


#nav li ul {
 display: none;
 position: absolute;
 left: 0;
 top: 100%;/*define a distancia que os sub-menus ficaraão do menu quando o efeito for ativado*/
 padding: 0; margin: 0 auto;
}

#nav li:hover > ul {
 display: block;
}

#nav li ul li, #nav li ul li a {
 float: none;
}

#nav li ul li {
 _display: inline; /* for IE6 */
}

#nav li ul li a {
 width: 100px;/* */
 display:block;/*define o modelo de aba para o sub-menu*/
}

/* SUBSUB Menu */

#nav li ul li ul {
 display: none;
}

#nav li ul li:hover ul {
 left: 100%;
 top: 0;
}

#nav li ul 